package com.ssyt.hiringtwo.action.talent;

import com.ssyt.hiringtwo.action.BaseAction;

import com.ssyt.hiringtwo.entity.UserEntity;
import com.ssyt.hiringtwo.servies.talent.TalentService;

public class TalentAction extends BaseAction {
	  private UserEntity user;
	  private TalentService userService = new TalentService();
	  
	/**
	 * 初始化用户信息绑定页面
	 */
	public String toBindInfoUI(){
		return "toBindInfoUI";
	}

	/**
	 * 信息绑定
	 * 
	 * @return
	 */
	public String bindInfoUI() {
          user.setId(getTalentId());
		userService.bindInfoService(user);
		getTalent().setUsername(user.getUsername());
		getTalent().setPhone(user.getPhone());
		return "toIndexUI";
	}
	/**
	 * 初始化职位邀请界面
	 * @return
	 */
	public String invitationUI(){
		return "toinvitationUI";
	}
	/**
	 * 初始化投递反馈界面
	 * @return
	 */
	public String deliveryUI(){
		
		return "todeliveryUI";
	}
	
	public UserEntity getUser() {
		return user;
	}

	public void setUser(UserEntity user) {
		this.user = user;
	}

	public TalentService getUserService() {
		return userService;
	}

	public void setUserService(TalentService userService) {
		this.userService = userService;
	}

}
